import { Column, Entity } from 'typeorm'
import { BaseEntity } from './BaseEntity'

@Entity()
export class Subject extends BaseEntity {

  @Column({
    length: 80,
    comment: '学科名字',
  })
  public name!: string

  @Column({
    comment: '学科封面',
  })
  public cover!: string

  @Column({ name: 'student_count' })
  public studentCount!: number

  @Column({ comment: '上课时间' })
  public schooltime!: number

  @Column({ comment: '一年学费' })
  public yearPrice!: number

  @Column({ comment: '半年学费' })
  public halfYearPrice!: number

  @Column({ comment: '学科图片介绍广告' })
  public banners!: string
}
